home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mlib / include / mscgrid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  1.1 KB  |  32 lines

  1.  
  2. #ifndef __MSCGRID_H
  3. #define __MSCGRID_H
  4.  
  5. class MScGrid : public MScroller {
  6. public:
  7.     WORD                     Length;
  8.     WORD                     Width;
  9.     WORD                     CellLength;
  10.     WORD                     CellWidth;
  11. public:
  12.                  MScGrid (int x1, int y1, int x2, int y2,
  13.                       WORD TheLength, WORD TheWidth,
  14.                       WORD AHandle, WORD AnHParent = HROOT);
  15.                  MScGrid (const RECT& ABox, WORD TheLength, 
  16.                       WORD TheWidth, WORD AHandle, 
  17.                       WORD AnHParent = HROOT);
  18.     virtual void             Scroll (Direction where);
  19.     virtual inline void      TopLeftCell (POINT& cell);
  20.     virtual inline WORD      GetVisibleLength (void);
  21.     virtual inline WORD      GetVisibleWidth (void);
  22.     virtual inline void      WhichCell (int x, int y, POINT& cell);
  23.     virtual void             SetCellSize (WORD length, WORD width);
  24.     virtual void             LoadDirect (int fp);
  25.     virtual void             SaveDirect (int fp);
  26.     virtual void             Draw (int cx, int cy) = 0;
  27.     virtual WORD             Handler (EVENT event) = 0;
  28.                 ~MScGrid (void);
  29. };
  30.  
  31. #endif
  32.